package com.qfedu.yige.controller;

import com.qfedu.yige.pojo.Status;
import com.qfedu.yige.service.StatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/findStatus")
public class StatusController  {

    @Autowired
    private StatusService statusService;


    @RequestMapping("/ByUid")
    private Status findStatusByUid(Integer uid){
        Status byUid = statusService.findByUid(uid);
        return byUid;//前端接到参数后使用sname参数可以知道是什么状态
    }
}
